package com.xtyhz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xtyhz.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> userList(@Param("page") Integer page, @Param("size") Integer size, @Param("nickname") String nickname, @Param("email") String email, @Param("phone") String phone);

    void addUser(User user);

    void updateUser(User user);

    void deleteUserById(@Param("userId") Integer userId);

}
